#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "PickNum.h"
#include "SudokuSolve.h"

namespace Ui {
class MainWindow;
}

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    explicit MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_pushButton_clicked();
    void slot_clickNum(int num);

    void on_pushButton_2_clicked();

    void on_pushButton_3_clicked();

private:
    void paintEvent(QPaintEvent*) override;
    void mousePressEvent(QMouseEvent *e) override;

private:
    Ui::MainWindow *ui;
    int m_puzzle[9][9];
    int m_answer[9][9];
    PickNum* m_pickNum;
    SudokuSolve* m_sudokusolve;
    int m_click_x;
    int m_click_y;
    bool m_manual;
};

#endif // MAINWINDOW_H
